package com.denlaku.longan.service.impl;

import com.denlaku.longan.repository.AuditLogRepository;
import com.denlaku.longan.service.AuditLogService;
import com.denlaku.longan.vo.AuditLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tianx
 */
@Service
public class AuditLogServiceImpl implements AuditLogService {
    @Autowired
    private AuditLogRepository auditLogRepository;

    @Override
    public void add(AuditLog auditLog) {
        auditLogRepository.add(auditLog);
    }

    @Override
    public List<AuditLog> list(AuditLog auditLog) {
        return auditLogRepository.list(auditLog);
    }
}
